// Buff
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.Types.ObjectId;

const BuffSchema = new Schema({
    name: String, //Buff名字
    info: { //介绍
        type: String,
        default: ""
    },
    ad:{// 物理伤害附加
        type: Number,
        default: 0
    },
    ap:{// 法术伤害附加
        type: Number,
        default: 0
    },
    hp:{// 生命值附加
        type: Number,
        default: 0
    },
    speed:{// 速度附加
        type: Number,
        default: 0
    },
    def:{// 防御附加
        type: Number,
        default: 0
    },
    created_at: {
        type: Date,
        default: new Date()
    }
})

module.exports = Buffs = mongoose.model("buffs", BuffSchema);